/*
 * Copyright (c) 2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef HUKS_ADAPT_MANAGER_H
#define HUKS_ADAPT_MANAGER_H

#include "alg_common_type.h"
#include "alg_utils.h"

#define HASH_SIZE_SHA_256 32
#define MAX_DATABASE_FILE_SIZE (40 * 1024)
#define MAX_UPDATE_SIZE (64 * 1024)
#define MAX_OUTDATA_SIZE (64 * 1024)
#define SIZE_OF_UINT64 sizeof(uint64_t)

namespace OHOS {
namespace Security {
namespace DlpPermission {

bool IsHuksMgrKeyExist(const AlgKeyInfo *keyInfo);
int32_t HuksGenerateMacKey(const AlgKeyInfo *keyInfo);
int32_t HuksGenerateHmac(const AlgKeyInfo *keyInfo, const BlobData *data, BlobData *outData);

}  // namespace DlpPermission
}  // namespace Security
}  // namespace OHOS
#endif  // HUKS_ADAPT_MANAGER_H